package com.android.UrbanRemix;

/**
 * This code manages the opening screen.
 * @author Ryan
 */
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle; //import android.view.KeyEvent;
import android.view.View;
import android.widget.Button;

public class MainMenu extends Activity {

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.menu);

		Button remix = (Button) findViewById(R.id.RemixButton);
		remix.setOnClickListener(new View.OnClickListener() {
			public void onClick(View view) {
				Intent myIntent2 = new Intent(view.getContext(), Map.class);
				startActivityForResult(myIntent2, 0);
			}
		});

		Button upload = (Button) findViewById(R.id.CaptureButton);
		upload.setOnClickListener(new View.OnClickListener() {
			public void onClick(View view) {
				Intent myIntent = new Intent(view.getContext(),
						UrbanRemix_New.class);
				startActivityForResult(myIntent, 0);
			}
		});

	}

	// // Back to menu
	// public boolean onKeyDown(int keyCode, KeyEvent event) {
	// switch (keyCode) {
	// case KeyEvent.KEYCODE_BACK:
	// Intent home = new Intent(this, MainMenu.class);
	// startActivityForResult(home, 0);
	//        	
	// break;
	// default:
	//              
	// break;
	// }
	// return super.onKeyDown(keyCode, event);
	// }
}